package randomTest;

import java.util.HashSet;
import java.util.Random;
import java.util.Scanner;

public class RandomTest {

	public static void main(String[] args) {

		int total = 0;
		int now = 0;
		boolean b = false;
		HashSet<Integer> set = new HashSet<Integer>();
		// set.add(0);

		Random ran = new Random();

		Scanner sc = new Scanner(System.in);
		total = sc.nextInt();
		sc.close();

		for (int i = 0; i <= total; i++) {
			while (!b) {
				now = ran.nextInt(total + 1);
				b = set.add(now);
			}

			b = false;
			System.out.println(now);
		}

		// System.out.println(total);

	}

}
